<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSpecialTopicTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('special_topic', function (Blueprint $table) {
            $table->id();
            $table->longText("content")->comment("专题页内容");
            $table->boolean("is_open")->default(1)->comment("是否开启状态0关闭 1开启");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('special_topic');
    }
}
